﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Common.Infrastructure
{
    /// <summary>
    /// 数据库参数
    /// </summary>
    public class ApiDbParameter
    {
        public ApiDbParameter()
        {
        }

        public ApiDbParameter(ApiDbParameterParamTypeEnum paramType, string paramName, string paramValue)
        {
            this.ParamType = paramType;
            this.ParamName = paramName;
            this.ParamValue = paramValue;
        }

        /// <summary>
        /// 参数类型
        /// 0-字符串
        /// 1-日期
        /// 2-int
        /// 3-decimal
        /// 4-bool
        /// </summary>
        public ApiDbParameterParamTypeEnum ParamType { get; set; }

        /// <summary>
        /// 参数的名称
        /// </summary>
        public string ParamName { get; set; }

        /// <summary>
        /// 参数的值
        /// </summary>
        public string ParamValue { get; set; }

        /// <summary>
        /// 字段长度  默认800
        /// </summary>
        public int ParamLength { get; set; }
    }
}
